from django import template

register = template.Library()

@register.inclusion_tag('includes/nav_link.html', takes_context=True)
def nav_link(context, name, href):
    page = context.get("p", "")
    return {'link': page.lower()!=name.lower(),
            'name': name,
            'href': href
            }
